#ifndef BANGOSTORAGE_H
#define BANGOSTORAGE_H

#include "BangoNokiaQTLibrary_global.h"
#include "BangoConstants.h"
#include <QtSql>

class BangoStorage
{
private:
    QSqlDatabase dbBango;
    void CreateConnection();
    void CloseConnection();
    static QString connectionName;

public:
    BangoStorage();
    ~BangoStorage();

    int SaveRecord(QString jsonText);
    QMap<int, QString> GetRecords();
    bool DeleteRecord(int recordId);

};

#endif // BANGOSTORAGE_H
